package bean;

public class Category {
    private int id;/*目录id*/
    private String name;/*目录名称*/
    private String time;/*创建目录的时间*/
    private String user;/*目录创建者*/
    private String intro;/*目录简介*/
    public Category(){

    }

    public Category(int id, String name, String time, String user, String intro) {
        this.id = id;
        this.name = name;
        this.time = time;
        this.user = user;
        this.intro = intro;
    }

    public Category(int id, String name, String time, String intro) {
        this.id = id;
        this.name = name;
        this.time = time;
        this.intro = intro;
    }

    public Category(String name, String time, String user, String intro) {
        this.name = name;
        this.time = time;
        this.user = user;
        this.intro = intro;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    @Override
    public String toString() {
        return "Category{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", time=" + time +
                ", user='" + user + '\'' +
                ", intro='" + intro + '\'' +
                '}';
    }
}
